package fr.upmc.aladyn.transactionables.tests.objects;

import java.awt.Color;

import fr.upmc.aladyn.transactionables.annotations.Transactionable;

/**
 * <p>A Transactionnable ColoredPoint, extended from a Point, with a Color field.</p>
 * @author Marie-Diana Tran
 *
 */
@Transactionable
public class ColoredPoint extends Point {

	Color color;

	public ColoredPoint(int xx, int yy, Color _color) {
		super(xx, yy);
		this.color = _color;
	}

	public Color getColor(){
		return color;
	}

	public void setColor(Color color){
		this.color = color;
	}
	
	public String toString(){
		return "ColoredPoint("+getX()+","+getY()+","+this.color.toString()+")";
	}
}
